home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 2.6 KB | 98 lines | [TEXT/MPS ] |
- ;
- ; File: NVRAMPlugin.a
- ;
- ; Version: Technology:
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__NVRAMPLUGIN__') = 'UNDEFINED' THEN
- __NVRAMPLUGIN__ SET 1
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- IF FOR_SYSTEM8_PREEMPTIVE THEN
- ;
- ;≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
- ; status codes
- ;≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
- ;
-
- kNVRAMNoError EQU 0
- kNVRAMTimeout EQU 1
- kNVRAMUnexpectedError EQU 2
- kNVRAMMemoryError EQU 3
- kNVRAMParameterError EQU 4
- kNVRAMDeviceError EQU 5
- kNVRAMUnexpectedDeviceRequest EQU 6
- kNVRAMControllerError EQU 7
- kNVRAMConsistencyCheckError EQU 8
- ;
- ;≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
- ; Plugin Calls Provided by the Family
- ;≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
- ;
- ;
- ; extern void NVRAMFamRequestComplete(OSStatus theStatus)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION NVRAMFamRequestComplete
- ENDIF
-
- ;
- ;≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
- ; Plugin Calls Provided by the Plugin
- ;≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
- ; all plugin calls are async
- ; the plugin starts the i/o and returns immediately
- ; the plugin ISR calls NVRAMFamRequestComplete() when the i/o is completed
- ;
-
- kNVRAMPluginCurrentRevision EQU $000D11E2
- NVRAMPluginVersion RECORD 0
- major ds.l 1 ; offset: $0 (0)
- reserved0 ds.l 1 ; offset: $4 (4)
- reserved1 ds.l 1 ; offset: $8 (8)
- reserved2 ds.l 1 ; offset: $C (12)
- sizeof EQU * ; size: $10 (16)
- ENDR
- NVRAMPluginDispatchTable RECORD 0
- version ds NVRAMPluginVersion ; offset: $0 (0)
- Init ds.l 1 ; offset: $10 (16)
- Read ds.l 1 ; offset: $14 (20)
- Write ds.l 1 ; offset: $18 (24)
- sizeof EQU * ; size: $1C (28)
- ENDR
- ;
- ; extern OSStatus NVRAMPluginInit(void )
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION NVRAMPluginInit
- ENDIF
-
- ;
- ; extern OSStatus NVRAMPluginRead(UInt16 offset, UInt8 *data, UInt16 count)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION NVRAMPluginRead
- ENDIF
-
- ;
- ; extern OSStatus NVRAMPluginWrite(UInt16 offset, UInt8 *data, UInt16 count)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION NVRAMPluginWrite
- ENDIF
-
- ENDIF
- ENDIF ; __NVRAMPLUGIN__
-
-